package view;

import view.impl.attribute;

import java.util.Scanner;

/**
 * @author shkstart
 * @creat 16:16 2022/6/3
 */

public class init extends attribute {
    public static void main(String[] args) {
        init init = new init();
        init.startMenu();
    }

    public void startMenu() {
        while (true) {
            System.out.println("欢迎使用“吃货联盟订餐系统”");
            System.out.println("*****************************************");

            System.out.println("\t1.我要订餐");
            System.out.println("\t2.查看订餐");
            System.out.println("\t3.签收订餐");
            System.out.println("\t4.删除订餐");
            System.out.println("\t5.我要点赞");
            System.out.println("\t6.退出系统");

            Scanner scanner = new Scanner(System.in);
            String r = scanner.next();
            switch (r) {
                case "1":
                    Order();
                    break;
                case "2":
                    showOrder();
                    break;
                case "3":
                    getOrder();
                    break;
                case "4":
                    deleterOrder();
                    break;
                case "5":
                    goodToU();
                    break;

            }
            System.out.println("请正确输入序号！！");
            if(r.equals("6")){
                System.out.println("欢迎下次光临");
                break;
            }
        }
    }
}
